package com.anivia.common.core.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 公共响应状态码
 *
 * @author wangj
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum DeletedStatusEnum {
    /**
     * 未删除
     */
    NO_DELETED(0, "未删除"),
    /**
     * 已删除
     */
    DELETED(1, "已删除"),
    ;

    @EnumValue
    private Integer code;
    private String desc;

    public String toString() {
        return name() + "-" + getDesc();
    }
}
